package org.example.tliaswebmanagement.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.tliaswebmanagement.pojo.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RestController
@Slf4j
public class UploadController {

    @PostMapping
    public Result upload(String username, Integer age, MultipartFile image) {
        log.info("文件上传");
        log.info("username:{},age:{},image:{}", username, age, image);
        String filename = image.getOriginalFilename();


        return Result.success();
    }
}
